package module02.task03;

/**
 * 通话套餐类
 *
 * 特征：通话时长、短信条数、每月资费
 * 行为: 显示所有套餐信息
 */
public class MobilePlan extends Plan implements MobileService{
    private int airtime;
    private int textNum;

    public MobilePlan(){
        super();
    }

    public MobilePlan(int price, int airtime, int textNum){
        super(price);
        setAirtime(airtime);
        setTextNum(textNum);
    }
    @Override
    public void show(){
        System.out.println("通话套餐月通话时间：" + getAirtime());
        System.out.println("通话套餐月短信数量：" + getTextNum());
        System.out.println("通话套餐月价格：" + getPrice());
    }

    @Override
    public void service(int airtime, SimCard sim) {
        System.out.println("==========通话套餐工作中=======");
    }

    public int getAirtime() {
        return airtime;
    }

    public void setAirtime(int airtime) {
        this.airtime = airtime;
    }

    public int getTextNum() {
        return textNum;
    }

    public void setTextNum(int textNum) {
        this.textNum = textNum;
    }
}
